package com.lhk.appframework.junit.javafunc;

import java.util.Calendar;
import java.util.Date;

import com.lhk.appframework.utils.UtilsLog;
import com.lhk.appframework.utils.UtilsTimer;

import android.test.AndroidTestCase;

public class JavaTimeTest extends AndroidTestCase {

	public void testTimeStmap(){
		
		String timestamp = UtilsTimer.getCurrentTimeStamp();
		
		UtilsLog.d("timestmap = " + timestamp);
		
		
		String timeInMillis = Calendar.getInstance().getTimeInMillis() + ""; 
		UtilsLog.d("timeInMillis = " + timeInMillis);
		
		String dateTime = new Date().getTime() + "";  
		UtilsLog.d("dateTime = " + dateTime);
		
		
		String currentTimeMillis = System.currentTimeMillis() + "";
		UtilsLog.d("currentTimeMillis = " + currentTimeMillis);
		
		
	 	Calendar calendar = Calendar.getInstance();
	 	
	 	
	 	long getTime = calendar.getTime().getTime();
    	UtilsLog.d("getTime = " + getTime);
	 	
	 	
	 	
    	calendar.set(Calendar.MILLISECOND, 0);
    	long getTimeInMillis = calendar.getTimeInMillis();
    	UtilsLog.d("getTimeInMillis = " + getTimeInMillis);
    	
    	
    	
	}
}
